<div class="order_detail">
<div class="w1">
    <h2>订单详情</h2>
    <table class="table">
    <{foreach item=list from=$log}>
    <tr class="tr">
        <td width="80"><{$list.create_time|date_format:"%Y-%m-%d&nbsp;%H:%M:%S"}></td>
        <td><{$list.text}></td>
    </tr>
    <{/foreach}>
    </table>
    <table class="table">
        <thead>
            <tr>
                <th class="partition" colspan="99">订单信息</th>
            </tr>
        </thead>
        <tbody>
        <tr class="tr">
            <td width="50">订单编号</td>
            <td width="150"><{$de.order_id}></td>
            <td width="50">订单状态</td>
            <td width="100"><b class="org"><{$de.statu_text}></b></td>
            <td width="50">支付状态</td>
            <td width="150"><b><{$de.order_pay_status}></b></td>
            <td width="50">配送状态</td>
            <td><b><{$de.order_ship_status}></b></td>
        </tr>
        <tr class="tr">
            <td>支付方式</td>
            <td><{$de.payment_name}></td>
            <td>配送方式</td>
            <td colspan="99"><{$de.shipping_name}></td>
        </tr>
        </tbody>
    </table>
    <table class="table alc">    
        <thead>
            <tr>
                <th class="partition" colspan="99">产品信息</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td class="al" width="80">编号</td>
                <td class="al">产品</td>
                <td width="150">单价</td>
                <td width="150">数量</td>
                <td width="100">总价</td>
            </tr>
            <{foreach item=list from=$de.product}>
            <tr>
                <td class="al"><{$list.code}></td>
                <td class="al <{if $list.service}>npb<{/if}>">
                    <a target="_blank" href="index.php?m=product&s=detail&id=<{$list.pid}>">
                        <{$list.name}>
                    </a>
                </td>
                <td <{if $list.service}>class="npb"<{/if}>><{$config.money}><{$list.price|number_format:2}></td>
                <td <{if $list.service}>rowspan="2"<{/if}>>x<{$list.num}></td>
                <td <{if $list.service}>rowspan="2"<{/if}>><{$config.money}><{$list.sum|number_format:2}></td>
            </tr>
            <{if $list.product_give}>
            <tr class="product_give">
                <td class="al">赠品</td>
                <td class="al">
                    <{foreach item=slist from=$list.product_give}>
                        <p><{$slist.pname}></p>
                    <{/foreach}>
                </td>
            </tr>
            <{/if}>
            <{if $list.service}>
            <tr class="other">
                <td class="al">服务</td>
                <td class="al">
                    <{foreach item=slist from=$list.service}>
                        <p><{$slist.name}></p>
                    <{/foreach}>
                </td>
                <td>
                    <{foreach item=slist from=$list.service}>
                        <p><{$config.money}><{$slist.price}></p>
                    <{/foreach}>
                </td>
            </tr>
            <{/if}>
            <{/foreach}>
            <tr>
                <td colspan="99" align="right" class="pr20">
                商品重量: <{$de.weight}>kg &nbsp;&nbsp;
                商品总金额: <{$config.money}><{$de.cost}>&nbsp;&nbsp;
                配送费用: <{$config.money}><{$de.freight}>&nbsp;&nbsp;
                订单总金额: <b class="red"><{$config.money}><{$de.freight+$de.cost}></b>
                </td>
            </tr>
            <{if $des}>
            <tr>
                <td class="al" colspan="99">备注: <{$de.des}></td>
            </tr>
            <{/if}>
        </tbody>
    </table>
    <table class="table">         
        <thead>
            <tr>
                <th class="partition" colspan="99">收货地址</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td width="100">收货人</td>
                <td><{$de.ship_name}></td>
            </tr>
            <tr>
                <td>联系电话</td>
                <td><{$de.ship_mobile}> <{$de.ship_tel}></td>
            </tr>
            <tr>
                <td>收货地址</td>
                <td><{$de.ship_addr}></td>
            </tr>
        </tbody>
    </table>
    <table class="table">         
        <thead>
            <tr>
                <th class="partition" colspan="99">发票信息</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td width="100">发票信息</td>
                <td><{foreach item=v key=num from=$lang.itype}><{if $num==$de.invoices.type}><{$v}><{/if}><{/foreach}></td>
            </tr>
            <{if $de.invoices.type==1}>
            <tr>
                <td>单位名称</td>
                <td><{$de.invoices.company}></td>
            </tr>
            <tr>
                <td>纳税人识别号</td>
                <td><{$de.invoices.number}></td>
            </tr>
            <tr>
                <td>注册地址</td>
                <td><{$de.invoices.address}></td>
            </tr>
            <tr>
                <td>注册电话</td>
                <td><{$de.invoices.telephone}></td>
            </tr>
            <tr>
                <td>开户银行</td>
                <td><{$de.invoices.bank}></td>
            </tr>
            <tr>
                <td>银行帐户</td>
                <td><{$de.invoices.account}></td>
            </tr>
            <{else}>
            <tr>
                <td>发票抬头</td>
                <td><{foreach item=v key=num from=$lang.irise}><{if $num==$de.invoices.rise}><{$v}><{/if}><{/foreach}><{if $de.invoices.rise==1}><{$de.invoices.company}><{/if}></td>
            </tr>
            <{/if}>
            <tr>
                <td>发票内容</td>
                <td><{foreach item=v key=num from=$lang.icontent}><{if $num==$de.invoices.content}><{$v}><{/if}><{/foreach}></td>
            </tr>
        </tbody>
    </table>
</div>
</div>
